package cn.yuanqiao.manage.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.annotation.IdAnnotation;
import cn.yuanqiao.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;

/**
 * manage对象 YQDACATEGORY_MODEL
 *
 * @author yuanqiao
 * @date 2023-06-14
 */
public class YqdacategoryModel extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @IdAnnotation
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    private Long id;

    /**
     * 父节点id
     */
    @Excel(name = "父节点id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    private Long parentId;

    /**
     * 元数据模板id
     */
    @Excel(name = "元数据模板id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    private Long groupId;

    /**
     * 门类名称
     */
    @NotNull(message = "请输入门类名称")
    @Excel(name = "门类名称")
    private String name;

    /**
     * 类型
     */
    @NotNull(message = "请选择整理方式")
    @Excel(name = "整理方式", readConverterExp = "0=组件类型1=组卷类型3=项目类型")
    private Integer type;

    /**
     * 档案库类型
     */
    @NotNull(message = "请选择档案库类型")
    @Excel(name = "档案库类型", readConverterExp = "t=文本类p=照片类v=视频类m=录音类o=其他类")
    private String storeType;

    /**
     * 上架方式
     */
    @NotNull(message = "请选择上架方式")
    @Excel(name = "上架方式", readConverterExp = "1=按卷上架2=按盒上架")
    private Integer storeMode;

    /**
     * 门类代码
     */
    @NotNull(message = "请输入门类代码")
    @Excel(name = "门类代码")
    private String code;

    /**
     * 是否删除
     */
    @Excel(name = "是否删除", readConverterExp = "0=正常1=删除")
    private Integer isDel;

    /**
     * 创建人ID
     */
    @Excel(name = "创建人ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)//转化成string传到前端
    private Long creatorId;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String creator;

    /**
     * 全宗代码
     */
    @Excel(name = "全宗代码")
    private String fondsCode;

    /**
     * 电子文件类型
     */
    @NotNull(message = "请选择电子文件类型")
    @Excel(name = "电子文件类型")
    private String fileTypes;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer orderNo;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getStoreType() {
        return storeType;
    }

    public void setStoreMode(Integer storeMode) {
        this.storeMode = storeMode;
    }

    public Integer getStoreMode() {
        return storeMode;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setFondsCode(String fondsCode) {
        this.fondsCode = fondsCode;
    }

    public String getFondsCode() {
        return fondsCode;
    }

    public void setFileTypes(String fileTypes) {
        this.fileTypes = fileTypes;
    }

    public String getFileTypes() {
        return fileTypes;
    }

    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public Long getGroupId() {
        return groupId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setStoreType(String storeType) {
        this.storeType = storeType;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("ID", getId())
                .append("parentId", getParentId())
                .append("groupId", getGroupId())
                .append("name", getName())
                .append("type", getType())
                .append("storeType", getStoreType())
                .append("storeMode", getStoreMode())
                .append("code", getCode())
                .append("remark", getRemark())
                .append("isDel", getIsDel())
                .append("creatorId", getCreatorId())
                .append("creator", getCreator())
                .append("createTime", getCreateTime())
                .append("fondsCode", getFondsCode())
                .append("fileTypes", getFileTypes())
                .append("orderNo", getOrderNo())
                .toString();
    }
}
